ipv6-postfix tramp-postfix-host-format)))
;; The hop string fits only the initial syntax.
(hop (and (eq tramp-syntax orig-syntax) hop))
+ ;; Needed for host name completion.
+ (default-user
+ (file-remote-p
+ (concat tramp-prefix-format hop method-string host-string)
+ 'user))
+ (default-user-string
+ (unless (tramp-string-empty-or-nil-p default-user)
+ (concat default-user tramp-postfix-user-format)))
test result completions)
(dolist
tramp-prefix-format hop method-string host-string)
,(concat
tramp-prefix-format hop method-string
- user-string host-string))
+ default-user-string host-string))
,host-string)))
;; Complete user and host name.
(unless (or (tramp-string-empty-or-nil-p user)